package org.jsbd.boss.dao.impl;

import java.util.List;

import org.jsbd.boss.dao.IBrushConfigTimerDAO;
import org.jsbd.boss.domian.channel.BrushConfigTimer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

@Service
public class BrushConfigTimerDaoImpl extends CrackBaseDao implements IBrushConfigTimerDAO {
	public static final Logger LOGGER = LoggerFactory.getLogger(BrushConfigTimerDaoImpl.class);

	@Override
	public void insertConfig(BrushConfigTimer config) {
		super.insert("qy_brush_config_timer.INSERT_CONFIG", config);
	}

	@Override
	public void deleteConfig(Integer id) {
		super.delete("qy_brush_config_timer.DELETE_CONFIG", id);
	}

	@Override
	public Integer countConig(BrushConfigTimer config) {
		return super.queryForCount("qy_brush_config_timer.COUNT_LIST", config);
	}

	@Override
	public List<BrushConfigTimer> selectList(BrushConfigTimer config) {
		return super.queryForList("qy_brush_config_timer.SELECT_LIST", config);
	}

	@Override
	public BrushConfigTimer selectConfig(BrushConfigTimer config) {
		return (BrushConfigTimer) super.queryForObject("qy_brush_config_timer.SELECT_CONFIG", config);
	}

	@Override
	public void updateConfig(BrushConfigTimer config) {
		super.update("qy_brush_config_timer.UPDATE_CONFIG", config);
	}
}
